<script setup>
import { EditPen, Lock, Delete } from '@element-plus/icons-vue'
// 组件中使用，接收传参的
defineProps({
  row: Object
})
// 组件中使用，接收事件的
const emits = defineEmits(['operate1', 'operate2', 'operate3', 'operate4', 'operate5', 'changeStatus']);
</script>
<template>
  <el-switch 
  v-model="row.status" 
  :active-value="1"
  :inactive-value="0"
  @change="emits('changeStatus')"></el-switch>
</template>